/**
 * 用于解决 
 *  for(const key in store.actions){
     actionNames[key] = key
    }
    这类子的类型检测报错
 * @param key 
 * @param object 
 * @returns 
 */
export function isValidKey(key: string | number | symbol, object: object): key is keyof typeof object {
  return key in object
}
